package com.siwei.mes.mapper.system;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.system.CalibrationRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备校准记录表(CalibrationRecord)表数据库访问层
 *
 * @author dmwang
 * @since 2024-07-18 18:59:19
 */
public interface CalibrationRecordMapper extends BaseMapper<CalibrationRecord> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<CalibrationRecord> getList(CalibrationRecord entity);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    CalibrationRecord loadById(@Param("id") Long id);

    /**
     * 获取最后一次校准记录信息
     *
     * @param equipmentId 仪器设备id
     * @return
     */
    CalibrationRecord getLastCalibrationRecordInfo(@Param("equipmentId") Long equipmentId);
}
